/**
 * @Title Province.java
 * @Package com.sydtech.entity
 * @Description Province实体类
 * @Copyright ©2015 Sunyard Technology
 * @Author ou.nan@sunyard.com
 * @Date 2015年10月20日 下午7:42:01
 * @Version V1.0
 */
package com.sunyard.dal.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * @author tianch.liu
 * @date 2016-12-14 上午11:02:18
 */
@ApiModel(description = "")
public class Province implements Serializable {

    /**
     * Description
     */
    @ApiModelProperty(hidden = true)
    private static final long serialVersionUID = -1255252928286217260L;

    /**
     * Description
     */
    private String code;

    /**
     * Description
     */
    private String name;

    /**
     * Description
     */
    private String proCode;

    /**
     * Description
     */
    private String proName;

    /**
     * Description
     */
    private String unionCode;

    /**
     * Description
     */
    private List<City> children = new ArrayList<City>();


    /**
     * Description
     */
    public String getProCode() {
        return proCode;
    }

    /**
     * Description
     */
    public void setProCode(String proCode) {
        this.proCode = proCode;
    }

    /**
     * Description
     */
    public String getProName() {
        return proName;
    }

    /**
     * Description
     */
    public void setProName(String proName) {
        this.proName = proName;
    }

    /**
     * Description
     */
    public String getUnionCode() {
        return unionCode;
    }

    /**
     * Description
     */
    public void setUnionCode(String unionCode) {
        this.unionCode = unionCode;
    }

    /**
     * @return the code
     */
    public String getCode() {
        return code;
    }

    /**
     * @param code the code to set
     */
    public void setCode(String code) {
        this.code = code;
    }

    /**
     * @return the name
     */
    public String getName() {
        return name;
    }

    /**
     * @param name the name to set
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * @return the children
     */
    public List<City> getChildren() {
        return children;
    }

    /**
     * @param children the children to set
     */
    public void setChildren(List<City> children) {
        this.children = children;
    }

    /**
     * Description
     */
    public Province() {
        super();
        //TODO Auto-generated constructor stub
    }

    /**
     * @param code
     * @param name
     * @param proCode
     * @param proName
     * @param unionCode
     * @param children
     */
    public Province(String code, String name, String proCode, String proName, String unionCode, List<City> children) {
        super();
        this.code = code;
        this.name = name;
        this.proCode = proCode;
        this.proName = proName;
        this.unionCode = unionCode;
        this.children = children;
    }

    /**
     * (non-Javadoc)
     *
     * @see Object#toString()
     */
    @Override
    public String toString() {
        return "Province [code=" + code + ", name=" + name + ", proCode=" + proCode + ", proName=" + proName
                + ", unionCode=" + unionCode + ", children=" + children + "]";
    }


}
